package uutalk.netcloud.talk.base.mqtt;

import uutalk.netcloud.talk.base.mqtt.model.Subscription;

/**
 * Created by hujie on 17/3/30.
 */

public class SubscribeFactory {


    public static Subscription createSubscribe(String userId) {
        Subscription subscription = new Subscription();
        subscription.setTopic("uutalk/user/" + userId);
        subscription.setQoS(1);
        return subscription;
    }

    public static Subscription createGroupSubscribe(String groupId) {
        Subscription subscription = new Subscription();
        subscription.setTopic("uutalk/group/" + groupId);
        subscription.setQoS(1);
        return subscription;
    }
}
